package com.qww.test01;

public class Range {

    public static int[] range(int n) {
        return range(0, n);
    }

    public static int[] range(int start, int end) {
        return range(start, end, 1);
    }

    public static int[] range(int start, int end, int step) {
        int size = (end - start) / step;
        int[] ret = new int[size];
        for (int i = 0; i < ret.length; i++) {
            ret[i] = start + i * step;
        }

        return ret;
    }
}
